<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cryptic Cabinet: CrypticCabinet.Utils.OculusPlatformUtils Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="Logo 100x100px.png"/></td>
  <td id="projectalign">
   <div id="projectname">Cryptic Cabinet
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">CrypticCabinet.Utils.OculusPlatformUtils Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Utility class to configure the Oculus platform.  
 <a href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for CrypticCabinet.Utils.OculusPlatformUtils:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ac8daff777cdc97980a70d26dbf302caa" id="r_ac8daff777cdc97980a70d26dbf302caa"><td class="memItemLeft" align="right" valign="top">static async Task&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#ac8daff777cdc97980a70d26dbf302caa">InitializeOculusPlatformSDK</a> ()</td></tr>
<tr class="memdesc:ac8daff777cdc97980a70d26dbf302caa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the Oculus Core, checks entitlements, retrieves logged user.  <br /></td></tr>
<tr class="separator:ac8daff777cdc97980a70d26dbf302caa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c2c5ffbdf19e1bdcf55f73650416911" id="r_a4c2c5ffbdf19e1bdcf55f73650416911"><td class="memItemLeft" align="right" valign="top">static async Task&lt; User &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#a4c2c5ffbdf19e1bdcf55f73650416911">GetLoggedInUser</a> ()</td></tr>
<tr class="memdesc:a4c2c5ffbdf19e1bdcf55f73650416911"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the logged in Oculus user.  <br /></td></tr>
<tr class="separator:a4c2c5ffbdf19e1bdcf55f73650416911"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe757ec6fde4e86172ea93ff3bb9bcf1" id="r_afe757ec6fde4e86172ea93ff3bb9bcf1"><td class="memItemLeft" align="right" valign="top">static ulong&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#afe757ec6fde4e86172ea93ff3bb9bcf1">GetUserDeviceGeneratedUid</a> ()</td></tr>
<tr class="memdesc:afe757ec6fde4e86172ea93ff3bb9bcf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the generated unique id of the user device. This will change on every session.  <br /></td></tr>
<tr class="separator:afe757ec6fde4e86172ea93ff3bb9bcf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a7b1ba5b7bd81fd2bceb5efcf58ae2864" id="r_a7b1ba5b7bd81fd2bceb5efcf58ae2864"><td class="memItemLeft" align="right" valign="top">static UnityEvent&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#a7b1ba5b7bd81fd2bceb5efcf58ae2864">OnOculusPlatformSDKInitialized</a> = new()</td></tr>
<tr class="separator:a7b1ba5b7bd81fd2bceb5efcf58ae2864"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2aa73263af22cd95683ce870e54f1cf6" id="r_a2aa73263af22cd95683ce870e54f1cf6"><td class="memItemLeft" align="right" valign="top">static UnityEvent&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#a2aa73263af22cd95683ce870e54f1cf6">OnOculusCoreInitializationFailed</a> = new()</td></tr>
<tr class="separator:a2aa73263af22cd95683ce870e54f1cf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cd44fe4acb1788247b2468c698bf814" id="r_a8cd44fe4acb1788247b2468c698bf814"><td class="memItemLeft" align="right" valign="top">static UnityEvent&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#a8cd44fe4acb1788247b2468c698bf814">OnEntitlementCheckFailed</a> = new()</td></tr>
<tr class="separator:a8cd44fe4acb1788247b2468c698bf814"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45dd90f0913a866248463c65d0c8ee83" id="r_a45dd90f0913a866248463c65d0c8ee83"><td class="memItemLeft" align="right" valign="top">static UnityEvent&lt; User &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#a45dd90f0913a866248463c65d0c8ee83">OnOculusUserLoginSuccess</a> = new()</td></tr>
<tr class="separator:a45dd90f0913a866248463c65d0c8ee83"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Utility class to configure the Oculus platform. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a4c2c5ffbdf19e1bdcf55f73650416911" name="a4c2c5ffbdf19e1bdcf55f73650416911"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c2c5ffbdf19e1bdcf55f73650416911">&#9670;&#160;</a></span>GetLoggedInUser()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static async Task&lt; User &gt; CrypticCabinet.Utils.OculusPlatformUtils.GetLoggedInUser </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the logged in Oculus user. </p>
<dl class="section return"><dt>Returns</dt><dd>The Oculus user currently using the app and logged in.</dd></dl>

</div>
</div>
<a id="afe757ec6fde4e86172ea93ff3bb9bcf1" name="afe757ec6fde4e86172ea93ff3bb9bcf1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe757ec6fde4e86172ea93ff3bb9bcf1">&#9670;&#160;</a></span>GetUserDeviceGeneratedUid()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static ulong CrypticCabinet.Utils.OculusPlatformUtils.GetUserDeviceGeneratedUid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the generated unique id of the user device. This will change on every session. </p>
<dl class="section return"><dt>Returns</dt><dd>generated unique id as a ulong</dd></dl>

</div>
</div>
<a id="ac8daff777cdc97980a70d26dbf302caa" name="ac8daff777cdc97980a70d26dbf302caa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8daff777cdc97980a70d26dbf302caa">&#9670;&#160;</a></span>InitializeOculusPlatformSDK()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static async Task&lt; bool &gt; CrypticCabinet.Utils.OculusPlatformUtils.InitializeOculusPlatformSDK </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initializes the Oculus Core, checks entitlements, retrieves logged user. </p>
<dl class="section return"><dt>Returns</dt><dd>True if no error occurs during initialization.</dd></dl>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#a8cd44fe4acb1788247b2468c698bf814">CrypticCabinet.Utils.OculusPlatformUtils.OnEntitlementCheckFailed</a>, and <a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#a7b1ba5b7bd81fd2bceb5efcf58ae2864">CrypticCabinet.Utils.OculusPlatformUtils.OnOculusPlatformSDKInitialized</a>.</p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_app_startup.html#a2ead1f138e494c35987dbfe336d9042a">CrypticCabinet.AppStartup.Awake()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a8cd44fe4acb1788247b2468c698bf814" name="a8cd44fe4acb1788247b2468c698bf814"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cd44fe4acb1788247b2468c698bf814">&#9670;&#160;</a></span>OnEntitlementCheckFailed</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">UnityEvent CrypticCabinet.Utils.OculusPlatformUtils.OnEntitlementCheckFailed = new()</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_app_startup.html#a2ead1f138e494c35987dbfe336d9042a">CrypticCabinet.AppStartup.Awake()</a>, <a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#ac8daff777cdc97980a70d26dbf302caa">CrypticCabinet.Utils.OculusPlatformUtils.InitializeOculusPlatformSDK()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_app_startup.html#a408639dcc9aa314cf528751ad05907cd">CrypticCabinet.AppStartup.OnDestroy()</a>.</p>

</div>
</div>
<a id="a2aa73263af22cd95683ce870e54f1cf6" name="a2aa73263af22cd95683ce870e54f1cf6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2aa73263af22cd95683ce870e54f1cf6">&#9670;&#160;</a></span>OnOculusCoreInitializationFailed</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">UnityEvent CrypticCabinet.Utils.OculusPlatformUtils.OnOculusCoreInitializationFailed = new()</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_app_startup.html#a2ead1f138e494c35987dbfe336d9042a">CrypticCabinet.AppStartup.Awake()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_app_startup.html#a408639dcc9aa314cf528751ad05907cd">CrypticCabinet.AppStartup.OnDestroy()</a>.</p>

</div>
</div>
<a id="a7b1ba5b7bd81fd2bceb5efcf58ae2864" name="a7b1ba5b7bd81fd2bceb5efcf58ae2864"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b1ba5b7bd81fd2bceb5efcf58ae2864">&#9670;&#160;</a></span>OnOculusPlatformSDKInitialized</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">UnityEvent CrypticCabinet.Utils.OculusPlatformUtils.OnOculusPlatformSDKInitialized = new()</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_app_startup.html#a2ead1f138e494c35987dbfe336d9042a">CrypticCabinet.AppStartup.Awake()</a>, <a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html#ac8daff777cdc97980a70d26dbf302caa">CrypticCabinet.Utils.OculusPlatformUtils.InitializeOculusPlatformSDK()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_app_startup.html#a408639dcc9aa314cf528751ad05907cd">CrypticCabinet.AppStartup.OnDestroy()</a>.</p>

</div>
</div>
<a id="a45dd90f0913a866248463c65d0c8ee83" name="a45dd90f0913a866248463c65d0c8ee83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45dd90f0913a866248463c65d0c8ee83">&#9670;&#160;</a></span>OnOculusUserLoginSuccess</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">UnityEvent&lt;User&gt; CrypticCabinet.Utils.OculusPlatformUtils.OnOculusUserLoginSuccess = new()</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_app_startup.html#a2ead1f138e494c35987dbfe336d9042a">CrypticCabinet.AppStartup.Awake()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_app_startup.html#a408639dcc9aa314cf528751ad05907cd">CrypticCabinet.AppStartup.OnDestroy()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_oculus_platform_utils_8cs.html">OculusPlatformUtils.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_cryptic_cabinet.html">CrypticCabinet</a></li><li class="navelem"><a class="el" href="namespace_cryptic_cabinet_1_1_utils.html">Utils</a></li><li class="navelem"><a class="el" href="class_cryptic_cabinet_1_1_utils_1_1_oculus_platform_utils.html">OculusPlatformUtils</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
